package com.cneport.das.server.param.conf;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @Desc 参数服务转调地址
 * @Ver 1.0
 * @Author GavinZhang
 * @Company 东方物通科技有限（北京）公司
 * @Date 2021-12-13 15:09:59
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "service-urls")
public class ServiceUrl {

    @XmlElement(name = "dispatch-url")
    private List<DispatchURL> urls;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlRootElement
    @XmlType
    public static class DispatchURL {
        @XmlElement(name = "param-type")
        private String paramType;
        @XmlElement(name = "type-name")
        private String typeName;
        @XmlElement(name = "url")
        private String url;
    }
}
